﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using ERPStudio;
using System.Data.SqlClient;

namespace Fares
{
    public partial class TipDocumenteFrm : FrmRezumat
    {
        public TipDocumenteFrm(ModuleClass mc):base(mc)
        {
            InitializeComponent();
            workConnString = mc.workConnectionString;
            tipOperatieBindingSource.Add(new TipOperatiunePlata("Intrare", "I "));
            tipOperatieBindingSource.Add(new TipOperatiunePlata("Iesire", "O "));
            tipOperatieBindingSource.Add(new TipOperatiunePlata("Intrare,Iesire", "IO"));
            EnableMainAddButton = false;
            EnableMainDeleteButton = false;
        }

        private void TipDocumenteFrm_Load(object sender, EventArgs e)
        {
            this.tipDocumentTableAdapter.Connection = DeschideConexiune(workConnString);
            this.tipDocumentTableAdapter.Fill(this.eSRPDataSet.TipDocument);
            InchideConexiune(tipDocumentTableAdapter.Connection);

            AddBindingSource(tipDocumentBindingSource);
            AddTableAdaptor(tipDocumentTableAdapter.Adapter);

        }
    }
}
